import LoansMange from "../page/loans-manage/index.vue";
import UserManage from "../page/user-manage/index.vue";
import MenuManage from "../page/menu-manage/index.vue";
import UserDetail1 from "../page/user-manage/UserDetail1.vue";
import UserDetail2 from "../page/user-manage/UserDetail2.vue";
import Layout from "../components/Layout.vue";
import Slot from "../page/插槽/index.vue";
import AntdTable from "../page/antd-table/index.vue";
import AntdForm from "../page/antd-form/index.vue";
import LoansManage from "../page/loans-manage-vue/index.vue";
import StudentManage from "../page/student-manage/index.vue";
const routes = [
  {
    path: "/",
    component: Layout,
    children: [
      { path: "loan", component: LoansMange },
      {
        path: "user",
        name: "userManage",
        component: UserManage,
        meta: { title: "用户管理" },
      },
      { path: "slot", name: "Slot", component: Slot },
      { path: "antd-table", name: "antdTable", component: AntdTable },
      { path: "antd-form", name: "antdForm", component: AntdForm },
      { path: "loans-manage", name: "loansManage", component: LoansManage },
      {
        path: "student-manage",
        name: "studentManage",
        component: StudentManage,
      },
    ],
  },
  { path: "/login", name: "menuManage", component: MenuManage },

  //   { path: "/loan", component: LoansMange, meta: { title: "贷款管理" } },
  //   {
  //     path: "/user",
  //     name: "userManage",
  //     component: UserManage,
  //     meta: { title: "用户管理" },
  //   },
  //   {
  //     path: "/user1",
  //     name: "userDetail1",
  //     component: UserDetail1,
  //   },
  //   {
  //     path: "/user2",
  //     name: "userDetail2",
  //     component: UserDetail2,
  //   },
  //   { path: "/menu", name: "menuManage", component: MenuManage },
];

export default routes;
